const Mock = require('mockjs')

const List = [
    {
        id: "1",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
     {
        id: "2",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "4",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "5",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "6",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "3",
        name: "lys",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "7",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "8",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "9",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "4",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "5",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "6",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "7",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "8",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "9",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "10",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "11",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
    {
        id: "12",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferencevalue: "1,3,4"
            }, {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferencevalue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferencevalue: "4"
            }
        ]

    },
];
const list = [
    {
        id: "1",
        name: "ly",
        sex: "1",
        phone: "111",
        email: "1233",
        position: "导购员",
        staffPreferenceList: [
            {
                id: "1",
                staffId: "1",
                preferenceName: "工作日偏好",
                preferenceValue: "1,3,4"
            }, 
            {
                id: "2",
                staffId: "1",
                preferenceName: "工作时间偏好",
                preferenceValue: "8:30-12:00"
            },
            {
                id: "3",
                staffId: "1",
                preferenceName: "班次时长偏好",
                preferenceValue: "4"
            }
        ]

    }
]
const records = [
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },
    {
        "dayWorkTime": 0.0,
        "email": "string",
        "id": 0,
        "name": "string",
        "phone": "string",
        "position": "string",
        "sex": "string",
        "staffPreferenceList":
            [
                {
                    "id": 0,
                    "preferenceName": "工作时间偏好",
                    "preferenceValue": "08:00-12:00",
                    "staffId": 0
                },
                {
                    "id": 1,
                    "preferenceName": "工作日偏好",
                    "preferenceValue": "1,3,4",
                    "staffId": 0
                },

            ],
        "storeId": 0,
        "weekWorkTime": 0.0
    },

]
// Mock.mock(List);
module.exports = [
    // {
    //     url: '/staff/list',
    //     type: 'get',
    //     response: () => {
    //         return {
    //             code: 20000,
    //             List: List,
    //         }
    //     }
    // },
    {
        url: '/staff/deleteById',
        type: 'post',
        response: () => {
            return {
                code: 20000,
                returnValue: 1,
                msg: "sucess"
            }
        }
    },
    {
        url: '/staff/updateOne',
        type: 'post',
        response: () => {
            return {
                code: 20000,
                returnValue: 1,
                msg: '添加成功'

            }
        }
    },
    {
        url: '/staff/deleteById',
        type: 'get',
        response: () => {
            return {
                code: 20000,
                returnValue: 1,
                msg: '成功'

            }
        }
    },
    {
        url: '/staff/getByName',
        type: 'get',
        response: () => {
            return {
                returnValue: 1,
                data:list,
                msg: '成功'
            }
        }
    },
    {
        url: '/staff/list',
        type: 'get',
        response: () => {
            return {
                code: 20000,
                "msg": "string",
                "returnValue": 0,
                "data": {
                    "current": 0,
                    "pages": 0,
                    "records":pageList,
                    "size": 10,
                    "total": mockList.length
                },
                "map": {}
            }
        }
    },

]
